# 定义与赋值
s1 = set()
s2 = set([1,2,4,5,3,4,2,6,7,1])
s3 = {1,3,5,7,12,13,3}

# 全部访问
print(s1)
print(s2)
print(s3)

# 操作
# 添加
print(s2)
s2.add(70)
print(s2)

# 删除
# 删除一个
print(s2)
s2.pop()
print(s2)

# 按值删除
print(s2)
s2.remove(2)
print(s2)

# 全部删除
print(s2)
s2.clear()
print(s2)


mjl= "shuai"
zy =  "bushuai"
zy1 = "shuai"
s4 = {1,2,3,4,mjl,zy}
s5 = {1,2,5,6,zy1}
# 交
print(s4&s5)
# 并
print(s4|s5)